package com.example.esdemo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author: kaibo
 * @date: 2020/11/24 18:55
 * @GitHub: https://github.com/yuxuelian
 * @qq: 568966289
 * @description:
 */


@Data
@Document(indexName = EsTestBean.INDEX_NAME, type = EsTestBean.TYPE)
public class EsTestBean {

    public static final String INDEX_NAME = "es_test_bean_index";
    public static final String TYPE = "es_test_bean_type";

    @Id
    private String id;

    private String name;
    private Integer age;
    private String sex;

}
